﻿using System;
using System.Collections;
using System.Collections.Generic;
#if DEVELOP
namespace Asset
{
    public class EditorAsyncBundle : EditorBundle
    {
        public EditorAsyncBundle(string url) : base(url)
        {

        }

        protected override void initialize()
        {

        }

        public override IEnumerator doLoad()
        {
            if (this.Status == AsyncStatus.Waiting)
            {
                this.result = UnityEditor.AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(this.URL);
                this.asyncStatus = AsyncStatus.Finish;
                yield break;
            }
            else
            {
                yield return null;
            }
        }

    }

}
#endif